package com.erp.erp_entitys.Purchase;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TaskVo {

    /**
     * 任务（备货）主键
     */
    private Integer taskId;

    /**
     * 任务（备货）单号
     */
    private String taskNo;

    /**
     * 客户合同号
     */
    private String customerContractNo;

    /**
     * 客户名称
     */
    private String customerName;
    
    /**
     * 客户等级编码
     */
    private String customerLevelCode;

    /**
     * 客户等级名称
     */
    private String customerLevelName;

    /**
     * 签约公司编码
     */
    private String signingCode;

    /**
     * 签约公司名称
     */
    private String signingName;

    /**
     * 签约日期
     */
    private Date deliverDate;

    /**
     * 银行编码
     */
    private String bankCode;

    /**
     * 银行名称
     */
    private String bankName;

    /**
     * 备货期限
     */
    private String leadTime;

    /**
     * 出运日期
     */
    private Date shipmentDate;

    /**
     * 运输方式
     */
    private String transportModel;

    /**
     * 业务模式编码
     */
    private String businessModelCode;

    /**
     * 业务员编码
     */
    private String salesmanCode;

    /**
     * 业务员编码
     */
    private String salesmanName;

    /**
     * 备货 备注
     */
    private String importRemark;

    /**
     * 签约时间段
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startDeliverTime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endDeliverTime;

    /**
     * 产品编码
     */
    private String productNo;

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    public String getCustomerContractNo() {
        return customerContractNo;
    }

    public void setCustomerContractNo(String customerContractNo) {
        this.customerContractNo = customerContractNo;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerLevelCode() {
        return customerLevelCode;
    }

    public void setCustomerLevelCode(String customerLevelCode) {
        this.customerLevelCode = customerLevelCode;
    }

    public String getCustomerLevelName() {
        return customerLevelName;
    }

    public void setCustomerLevelName(String customerLevelName) {
        this.customerLevelName = customerLevelName;
    }

    public String getSigningCode() {
        return signingCode;
    }

    public void setSigningCode(String signingCode) {
        this.signingCode = signingCode;
    }

    public String getSigningName() {
        return signingName;
    }

    public void setSigningName(String signingName) {
        this.signingName = signingName;
    }

    public Date getDeliverDate() {
        return deliverDate;
    }

    public void setDeliverDate(Date deliverDate) {
        this.deliverDate = deliverDate;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getLeadTime() {
        return leadTime;
    }

    public void setLeadTime(String leadTime) {
        this.leadTime = leadTime;
    }

    public Date getShipmentDate() {
        return shipmentDate;
    }

    public void setShipmentDate(Date shipmentDate) {
        this.shipmentDate = shipmentDate;
    }

    public String getTransportModel() {
        return transportModel;
    }

    public void setTransportModel(String transportModel) {
        this.transportModel = transportModel;
    }

    public String getBusinessModelCode() {
        return businessModelCode;
    }

    public void setBusinessModelCode(String businessModelCode) {
        this.businessModelCode = businessModelCode;
    }

    public String getSalesmanCode() {
        return salesmanCode;
    }

    public void setSalesmanCode(String salesmanCode) {
        this.salesmanCode = salesmanCode;
    }

    public String getSalesmanName() {
        return salesmanName;
    }

    public void setSalesmanName(String salesmanName) {
        this.salesmanName = salesmanName;
    }

    public String getImportRemark() {
        return importRemark;
    }

    public void setImportRemark(String importRemark) {
        this.importRemark = importRemark;
    }

    public Date getStartDeliverTime() {
        return startDeliverTime;
    }

    public void setStartDeliverTime(Date startDeliverTime) {
        this.startDeliverTime = startDeliverTime;
    }

    public Date getEndDeliverTime() {
        return endDeliverTime;
    }

    public void setEndDeliverTime(Date endDeliverTime) {
        this.endDeliverTime = endDeliverTime;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append(" \"taskId\":").append(taskId);
        sb.append(", \"taskNo\":\"").append(taskNo).append('\"');
        sb.append(", \"customerContractNo\":\"").append(customerContractNo).append('\"');
        sb.append(", \"customerName\":\"").append(customerName).append('\"');
        sb.append(", \"signingCode\":\"").append(signingCode).append('\"');
        sb.append(", \"signingName\":\"").append(signingName).append('\"');
        sb.append(", \"deliverDate\":\"").append(deliverDate).append('\"');
        sb.append(", \"bankCode\":\"").append(bankCode).append('\"');
        sb.append(", \"bankName\":\"").append(bankName).append('\"');
        sb.append(", \"leadTime\":\"").append(leadTime).append('\"');
        sb.append(", \"shipmentDate\":\"").append(shipmentDate).append('\"');
        sb.append(", \"transportModel\":\"").append(transportModel).append('\"');
        sb.append(", \"businessModelCode\":\"").append(businessModelCode).append('\"');
        sb.append(", \"salesmanCode\":\"").append(salesmanCode).append('\"');
        sb.append(", \"salesmanName\":\"").append(salesmanName).append('\"');
        sb.append(", \"startDeliverTime\":\"").append(startDeliverTime).append('\"');
        sb.append(", \"endDeliverTime\":\"").append(endDeliverTime).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
